<?php
namespace app\stores\model\partner;

use app\common\model\CommonModel;

class PartnerBonusShareLogModel extends CommonModel{
    protected  $name = 'beautiful_partner_bonus_share_log';
    protected  $pk   = 'log_id';

    public static function onBeforeInsert($model)
    {
        $model->set("add_time", date('Y-m-d H:i:s'));
        $model->set("add_ip", request()->ip());
    }
}
